package com.dtdream.emr;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;

public final class LengthB extends UDF {

    public int evaluate(String s) {
        if (null != s){
            return s.getBytes().length;
        }
        else {
            return 0;
        }
    }
}
